package com.uzai.console.common.utils;

import java.io.ByteArrayInputStream;
import java.io.InputStream;
import java.util.Base64;

/**
 * @Auther: jianghan
 * @Date: 2019/12/30 17:11
 * @Description:
 */
public class ImgBase64 {
    public static InputStream getFile(String base64){
        try {

            byte[] fileBuff = Base64.getDecoder().decode(base64);
            InputStream sbs = new ByteArrayInputStream(fileBuff);
            return sbs;
        } catch (Exception e) {
        }
        return null;
    }
}
